<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ChatGPT Chat Interface</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f0f0f0;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }

        .main-container {
            display: flex;
            background-color: white;
            width: 800px;
            height: 600px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .chat-container {
            flex: 2;
            display: flex;
            flex-direction: column;
            border-right: 2px solid #f0f0f0;
        }

        .chat-box {
            flex: 1;
            overflow-y: auto;
            padding: 10px;
        }

        .input-area {
            display: flex;
            gap: 10px;
            padding: 10px;
        }

        .input-area input {
            flex: 1;
            padding: 10px;
            border-radius: 8px;
            border: 1px solid #ccc;
        }

        .input-area button {
            padding: 10px;
            background-color: #2196F3;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
        }

        .storyline-container {
            flex: 1;
            padding: 20px;
            background-color: #f9f9f9;
        }

        .storyline-container h2 {
            margin-bottom: 10px;
        }

        .storyline {
            background-color: white;
            padding: 10px;
            border-radius: 8px;
            height: 100%;
            overflow-y: auto;
        }
    </style>
</head>
<body>
    <div class="main-container">
        <!-- Chat Section -->
        <div class="chat-container">
            <div class="chat-box" id="chatBox">
                <!-- Messages appear here -->
            </div>
            <div class="input-area">
                <input type="text" id="userInput" placeholder="Type a message...">
                <button id="sendButton">Send</button>
            </div>
        </div>

        <!-- Storyline Section -->
        <div class="storyline-container">
            <h2>User Storyline</h2>
            <div class="storyline" id="storyline">
                <!-- User storyline details -->
            </div>
        </div>
    </div>

    <script>
        document.getElementById("sendButton").addEventListener("click", function() {
            const input = document.getElementById("userInput").value.trim();
            if (input) {
                const chatBox = document.getElementById("chatBox");
                const message = document.createElement("div");
                message.textContent = "User: " + input;
                chatBox.appendChild(message);
                document.getElementById("userInput").value = "";
            }
        });
    </script>
</body>
</html>
